package cn.damai.search.baseService;

import cn.damai.model.Image;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

public interface BaseImageService {

    Image getImageById(@RequestParam("id") Long id);

    List<Image>	getImageListByMap(@RequestParam Map<String, Object> param);

    Integer getImageCountByMap(@RequestParam Map<String, Object> param);

    Integer qdtxAddImage(@RequestBody Image Image);

    Integer qdtxModifyImage(@RequestBody Image Image);

    List<Image> queryImageList(@RequestParam("targetId") Long targetId,
                                          @RequestParam("type") Integer type,
                                          @RequestParam("category") Integer category)  ;

    public List<Image> setDefaultImageList(List<Image> ImageList, Integer category, Integer type);



}
